Cut/Copy/Paste/Clear

Using the four icons on the toolbar, you can cut, copy, paste, and clear any portion of the hierarchy.

Cut allows you to cut a piece of the hierarchy and store it internally in Visaj's clipboard. If you Cut a container, all its children are "Cut" as well.

Copy works similarly to Cut except that the original components are not deleted.

Paste allows you to insert a piece of hierarchy that was previously cut or copied, anywhere into the hierarchy.

Clear will delete any portion of a hierarchy. WARNING: If a container is selected, then all its children will be deleted.

Note that these functions work with multiple selections as well. If you cut, copy or clear a multiple selection, the operation will affect all the selections. In the case of cut and copy, a subsequent paste will result in all the cut or copied selections being pasted back. If you paste into a multiple selection, a copy of the clipboard will be added to each of the selections.

Swing Components

Some Swing components are "composites", i.e. they consist of multiple components. For instance, a JFrame consists of the JFrame itself, plus a JRootPane, a glassPane, a JLayeredPane and a contentPane. The Cut and Copy commands ignore any selections that are a subordinate component of a composite.